package com.test.token;

import com.test.actionsupport.ActionSupport;
import lombok.Getter;
import lombok.Setter;

import java.util.concurrent.TimeUnit;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/13 21:49
 */
public class TokenAction extends ActionSupport {
    private static final long serialVersionUID = -1205106162456692901L;

    @Setter
    @Getter
    private String username;

    @Override
    public String execute() throws Exception {
        System.out.println(username);
        TimeUnit.SECONDS.sleep(2);
        return SUCCESS;
    }
}
